/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package officeboost.entity.form;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import org.jbpm.api.ExecutionService;

/**
 *
 * @author wangfrank
 */
//@Entity
public class MarkReviewForm  extends AbstractForm implements Serializable {
   
    private Long id;    

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    private String name;
    private String uid;
    private String major;
    private String school;
    private String grade;
    private String teacher;
    private String class_name;
    private String class_number;
    private String test_time;
    private String test_room;
    private String kind_of_test;
    private String original_mark;
    private String reason;
    private String student_edu_office_opinion;
    private String class_eu_office_opinion;
    private String class_school_opinion;
    private String result;
    private boolean success;
    private boolean complete;

    public boolean isComplete() {
        return complete;
    }

    public void setComplete(boolean complete) {
        this.complete = complete;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getClass_eu_office_opinion() {
        return class_eu_office_opinion;
    }

    public void setClass_eu_office_opinion(String class_eu_office_opinion) {
        this.class_eu_office_opinion = class_eu_office_opinion;
    }

    public String getClass_name() {
        return class_name;
    }

    public void setClass_name(String class_name) {
        this.class_name = class_name;
    }

    public String getClass_number() {
        return class_number;
    }

    public void setClass_number(String class_number) {
        this.class_number = class_number;
    }

    public String getClass_school_opinion() {
        return class_school_opinion;
    }

    public void setClass_school_opinion(String class_school_opinion) {
        this.class_school_opinion = class_school_opinion;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getKind_of_test() {
        return kind_of_test;
    }

    public void setKind_of_test(String kind_of_test) {
        this.kind_of_test = kind_of_test;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOriginal_mark() {
        return original_mark;
    }

    public void setOriginal_mark(String original_mark) {
        this.original_mark = original_mark;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public String getStudent_edu_office_opinion() {
        return student_edu_office_opinion;
    }

    public void setStudent_edu_office_opinion(String student_edu_office_opinion) {
        this.student_edu_office_opinion = student_edu_office_opinion;
    }

    public String getTeacher() {
        return teacher;
    }

    public void setTeacher(String teacher) {
        this.teacher = teacher;
    }

    public String getTest_room() {
        return test_room;
    }

    public void setTest_room(String test_room) {
        this.test_room = test_room;
    }

    public String getTest_time() {
        return test_time;
    }

    public void setTest_time(String test_time) {
        this.test_time = test_time;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    @Override
    public String apply(ExecutionService es) {
        es.startProcessInstanceByKey("mark_review", id.toString());
        return null;
    }

    @Override
    public Long theId() {
	throw new UnsupportedOperationException("Not supported yet.");
    }
}
